GET VERTEXDATA INDEX COUNT
This command will get the number of indices in the locked vertexdata.
Return Integer=GET VERTEXDATA INDEX COUNT()
The return value is an integer value.
Indice data is formatted as a set of three values, representing an index to a vertex, and these three references form a polygon. These groups of three are used to describe a list of polygons. If the count is zero, it means the vertexdata has no indice data and relies on vertex information only, storred as groups of three vertex indices per polygon.
rem Create simple plain and read its 4 vertices (plus any indices)
if get maximum vertex shader version()>0
make object plain 1,100,100
lock vertexdata for limb 1,0
vmax=get vertexdata vertex count()
for v=0 to vmax-1
x#=get vertexdata position x(v)
y#=get vertexdata position y(v)
z#=get vertexdata position z(v)
nx#=get vertexdata normals x(v)
ny#=get vertexdata normals y(v)
nz#=get vertexdata normals z(v)
diffuse=get vertexdata diffuse(v)
u#=get vertexdata u(v)
v#=get vertexdata v(v)
next v
imax=get vertexdata index count()
for i=0 to imax-1
vertindex=get indexdata(i)
next i
unlock vertexdata
endif
BASIC3D Commands Menu
Index